package cn.gzsf.csmall.passport.web;

public enum ServiceCode {

    OK(20000),//new ServiceCode(1)-->getValue()-->1
    ERR_BAD_REQUEST(40000),//new ServiceCode(2)-->getValue-->2
    ERR_UNAUTHORIZED(40100), //认证未通过异常
    ERR_UNAUTHORIZED_DISABLE(40101),//账户被禁用异常
    ERR_FORBIDDEN(40300),//认证通过，但是没有被授予权限
    ERR_NOT_FOUND(40400),
    ERR_CONFLICT(40900),
    ERR_INSERT(50000),
    ERR_DELETE(50100),
    ERR_UPDATE(50200),
    ERR_UNKNOWN(99999);

    private Integer value;

    private ServiceCode(){}

    private ServiceCode(int value){
        this.value=value;
    }

    public Integer getValue() {
        return value;
    }
}
